import { request } from "@/utils/request";
import base from "./base";
export const Api = {
    login(data) {
        return request.post(base.baseUrl + base.login, data)
    },
    getUserInf(data) {
        return request.get(base.baseUrl + base.getUserInfo, data)
    },
    getCartList(data) {
        return request.post(base.baseUrl + base.getCartList, data)
    },
    addCart(data) {
        return request.post(base.baseUrl + base.addCart, data)
    },
    deleteCart(data) {
        return request.post(base.baseUrl + base.deleteCart, data)
    },
    getCakeDetail(data) {
        return request.post(base.baseUrl + base.getCakeDetail, data)
    },
    getCommentList(data) {
        return request.post(base.baseUrl + base.getCommentList, data)
    },
}